// 引入 vue
/**
 * 配置 webpack.config.js 中
 * resolve: {
    alias: {
      'vue$': "vue/dist/vue.js"
    }
  },
 */
import Vue from 'vue'
import mapMethods from './data-mtd'

const a: string = '<a href="#">{{name}}</a>'

const vm = new Vue({
  el: '#app',
  data: {
    name: 'Jhon Ranber',
    aTag: a
  },
  mounted() {
    console.log('mounted::', this.name)
  },
  methods: mapMethods(['clickHandler', 'keyup'])
})

export default vm
